<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
$from = 'hocvien@webdoanhnghiep.org';
$to = 'hocvien@webdoanhnghiep.org';
$subject = 'Send Unicode email';
$message = 'Email tiếng Việt Unicode: <b>in đậm</b>, <i>in nghiêng</i>, <u>gạch chân</u>.';
$header = "Content-type: text/html; charset=utf-8\r\nFrom: $from\r\nReply-to: $from";
 
if ( mail($to, $subject, $message, $header) ) echo "Email sent to $to!";
else echo "Error occured while sending email to $to!";

?>
</body>
</html>
